/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service.base;

import com.liferay.counter.service.CounterLocalService;

import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.service.ResourceLocalService;
import com.liferay.portal.service.ResourceService;
import com.liferay.portal.service.UserLocalService;
import com.liferay.portal.service.UserService;
import com.liferay.portal.service.persistence.ResourcePersistence;
import com.liferay.portal.service.persistence.UserPersistence;

import doan.quanlycanbo.portlet.model.giaoducphothong;
import doan.quanlycanbo.portlet.service.capuyLocalService;
import doan.quanlycanbo.portlet.service.chucvuLocalService;
import doan.quanlycanbo.portlet.service.danhhieuLocalService;
import doan.quanlycanbo.portlet.service.dantocLocalService;
import doan.quanlycanbo.portlet.service.dienbienhochamLocalService;
import doan.quanlycanbo.portlet.service.dienbienhocviLocalService;
import doan.quanlycanbo.portlet.service.dienbienluongLocalService;
import doan.quanlycanbo.portlet.service.donviLocalService;
import doan.quanlycanbo.portlet.service.giaoducphothongLocalService;
import doan.quanlycanbo.portlet.service.hesoluongLocalService;
import doan.quanlycanbo.portlet.service.hochamLocalService;
import doan.quanlycanbo.portlet.service.hocviLocalService;
import doan.quanlycanbo.portlet.service.hosoLocalService;
import doan.quanlycanbo.portlet.service.khoidonviquanlyLocalService;
import doan.quanlycanbo.portlet.service.ngachluongLocalService;
import doan.quanlycanbo.portlet.service.persistence.capuyPersistence;
import doan.quanlycanbo.portlet.service.persistence.chucvuPersistence;
import doan.quanlycanbo.portlet.service.persistence.danhhieuPersistence;
import doan.quanlycanbo.portlet.service.persistence.dantocPersistence;
import doan.quanlycanbo.portlet.service.persistence.dienbienhochamPersistence;
import doan.quanlycanbo.portlet.service.persistence.dienbienhocviPersistence;
import doan.quanlycanbo.portlet.service.persistence.dienbienluongPersistence;
import doan.quanlycanbo.portlet.service.persistence.donviPersistence;
import doan.quanlycanbo.portlet.service.persistence.giaoducphothongPersistence;
import doan.quanlycanbo.portlet.service.persistence.hesoluongPersistence;
import doan.quanlycanbo.portlet.service.persistence.hochamPersistence;
import doan.quanlycanbo.portlet.service.persistence.hocviPersistence;
import doan.quanlycanbo.portlet.service.persistence.hosoPersistence;
import doan.quanlycanbo.portlet.service.persistence.khoidonviquanlyPersistence;
import doan.quanlycanbo.portlet.service.persistence.ngachluongPersistence;
import doan.quanlycanbo.portlet.service.persistence.quatrinhdinuocngoaiPersistence;
import doan.quanlycanbo.portlet.service.persistence.quatrinhnghiencuuPersistence;
import doan.quanlycanbo.portlet.service.persistence.sachxuatbanPersistence;
import doan.quanlycanbo.portlet.service.persistence.tongiaoPersistence;
import doan.quanlycanbo.portlet.service.persistence.xuatthanPersistence;
import doan.quanlycanbo.portlet.service.quatrinhdinuocngoaiLocalService;
import doan.quanlycanbo.portlet.service.quatrinhnghiencuuLocalService;
import doan.quanlycanbo.portlet.service.sachxuatbanLocalService;
import doan.quanlycanbo.portlet.service.tongiaoLocalService;
import doan.quanlycanbo.portlet.service.xuatthanLocalService;

import java.util.List;

import javax.sql.DataSource;

/**
 * The base implementation of the giaoducphothong local service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link doan.quanlycanbo.portlet.service.impl.giaoducphothongLocalServiceImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this class directly. Always use {@link doan.quanlycanbo.portlet.service.giaoducphothongLocalServiceUtil} to access the giaoducphothong local service.
 * </p>
 *
 * @author Nguyen Tuan Vinh
 * @see doan.quanlycanbo.portlet.service.impl.giaoducphothongLocalServiceImpl
 * @see doan.quanlycanbo.portlet.service.giaoducphothongLocalServiceUtil
 * @generated
 */
public abstract class giaoducphothongLocalServiceBaseImpl
	implements giaoducphothongLocalService {
	/**
	 * Adds the giaoducphothong to the database. Also notifies the appropriate model listeners.
	 *
	 * @param giaoducphothong the giaoducphothong to add
	 * @return the giaoducphothong that was added
	 * @throws SystemException if a system exception occurred
	 */
	public giaoducphothong addgiaoducphothong(giaoducphothong giaoducphothong)
		throws SystemException {
		giaoducphothong.setNew(true);

		return giaoducphothongPersistence.update(giaoducphothong, false);
	}

	/**
	 * Creates a new giaoducphothong with the primary key. Does not add the giaoducphothong to the database.
	 *
	 * @param magdpt the primary key for the new giaoducphothong
	 * @return the new giaoducphothong
	 */
	public giaoducphothong creategiaoducphothong(long magdpt) {
		return giaoducphothongPersistence.create(magdpt);
	}

	/**
	 * Deletes the giaoducphothong with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param magdpt the primary key of the giaoducphothong to delete
	 * @throws PortalException if a giaoducphothong with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public void deletegiaoducphothong(long magdpt)
		throws PortalException, SystemException {
		giaoducphothongPersistence.remove(magdpt);
	}

	/**
	 * Deletes the giaoducphothong from the database. Also notifies the appropriate model listeners.
	 *
	 * @param giaoducphothong the giaoducphothong to delete
	 * @throws SystemException if a system exception occurred
	 */
	public void deletegiaoducphothong(giaoducphothong giaoducphothong)
		throws SystemException {
		giaoducphothongPersistence.remove(giaoducphothong);
	}

	/**
	 * Performs a dynamic query on the database and returns the matching rows.
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @return the matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return giaoducphothongPersistence.findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Performs a dynamic query on the database and returns a range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @param start the lower bound of the range of model instances to return
	 * @param end the upper bound of the range of model instances to return (not inclusive)
	 * @return the range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return giaoducphothongPersistence.findWithDynamicQuery(dynamicQuery,
			start, end);
	}

	/**
	 * Performs a dynamic query on the database and returns an ordered range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @param start the lower bound of the range of model instances to return
	 * @param end the upper bound of the range of model instances to return (not inclusive)
	 * @param orderByComparator the comparator to order the results by
	 * @return the ordered range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return giaoducphothongPersistence.findWithDynamicQuery(dynamicQuery,
			start, end, orderByComparator);
	}

	/**
	 * Counts the number of rows that match the dynamic query.
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @return the number of rows that match the dynamic query
	 * @throws SystemException if a system exception occurred
	 */
	public long dynamicQueryCount(DynamicQuery dynamicQuery)
		throws SystemException {
		return giaoducphothongPersistence.countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Gets the giaoducphothong with the primary key.
	 *
	 * @param magdpt the primary key of the giaoducphothong to get
	 * @return the giaoducphothong
	 * @throws PortalException if a giaoducphothong with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public giaoducphothong getgiaoducphothong(long magdpt)
		throws PortalException, SystemException {
		return giaoducphothongPersistence.findByPrimaryKey(magdpt);
	}

	/**
	 * Gets a range of all the giaoducphothongs.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param start the lower bound of the range of giaoducphothongs to return
	 * @param end the upper bound of the range of giaoducphothongs to return (not inclusive)
	 * @return the range of giaoducphothongs
	 * @throws SystemException if a system exception occurred
	 */
	public List<giaoducphothong> getgiaoducphothongs(int start, int end)
		throws SystemException {
		return giaoducphothongPersistence.findAll(start, end);
	}

	/**
	 * Gets the number of giaoducphothongs.
	 *
	 * @return the number of giaoducphothongs
	 * @throws SystemException if a system exception occurred
	 */
	public int getgiaoducphothongsCount() throws SystemException {
		return giaoducphothongPersistence.countAll();
	}

	/**
	 * Updates the giaoducphothong in the database. Also notifies the appropriate model listeners.
	 *
	 * @param giaoducphothong the giaoducphothong to update
	 * @return the giaoducphothong that was updated
	 * @throws SystemException if a system exception occurred
	 */
	public giaoducphothong updategiaoducphothong(
		giaoducphothong giaoducphothong) throws SystemException {
		giaoducphothong.setNew(false);

		return giaoducphothongPersistence.update(giaoducphothong, true);
	}

	/**
	 * Updates the giaoducphothong in the database. Also notifies the appropriate model listeners.
	 *
	 * @param giaoducphothong the giaoducphothong to update
	 * @param merge whether to merge the giaoducphothong with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	 * @return the giaoducphothong that was updated
	 * @throws SystemException if a system exception occurred
	 */
	public giaoducphothong updategiaoducphothong(
		giaoducphothong giaoducphothong, boolean merge)
		throws SystemException {
		giaoducphothong.setNew(false);

		return giaoducphothongPersistence.update(giaoducphothong, merge);
	}

	/**
	 * Gets the khoidonviquanly local service.
	 *
	 * @return the khoidonviquanly local service
	 */
	public khoidonviquanlyLocalService getkhoidonviquanlyLocalService() {
		return khoidonviquanlyLocalService;
	}

	/**
	 * Sets the khoidonviquanly local service.
	 *
	 * @param khoidonviquanlyLocalService the khoidonviquanly local service
	 */
	public void setkhoidonviquanlyLocalService(
		khoidonviquanlyLocalService khoidonviquanlyLocalService) {
		this.khoidonviquanlyLocalService = khoidonviquanlyLocalService;
	}

	/**
	 * Gets the khoidonviquanly persistence.
	 *
	 * @return the khoidonviquanly persistence
	 */
	public khoidonviquanlyPersistence getkhoidonviquanlyPersistence() {
		return khoidonviquanlyPersistence;
	}

	/**
	 * Sets the khoidonviquanly persistence.
	 *
	 * @param khoidonviquanlyPersistence the khoidonviquanly persistence
	 */
	public void setkhoidonviquanlyPersistence(
		khoidonviquanlyPersistence khoidonviquanlyPersistence) {
		this.khoidonviquanlyPersistence = khoidonviquanlyPersistence;
	}

	/**
	 * Gets the donvi local service.
	 *
	 * @return the donvi local service
	 */
	public donviLocalService getdonviLocalService() {
		return donviLocalService;
	}

	/**
	 * Sets the donvi local service.
	 *
	 * @param donviLocalService the donvi local service
	 */
	public void setdonviLocalService(donviLocalService donviLocalService) {
		this.donviLocalService = donviLocalService;
	}

	/**
	 * Gets the donvi persistence.
	 *
	 * @return the donvi persistence
	 */
	public donviPersistence getdonviPersistence() {
		return donviPersistence;
	}

	/**
	 * Sets the donvi persistence.
	 *
	 * @param donviPersistence the donvi persistence
	 */
	public void setdonviPersistence(donviPersistence donviPersistence) {
		this.donviPersistence = donviPersistence;
	}

	/**
	 * Gets the chucvu local service.
	 *
	 * @return the chucvu local service
	 */
	public chucvuLocalService getchucvuLocalService() {
		return chucvuLocalService;
	}

	/**
	 * Sets the chucvu local service.
	 *
	 * @param chucvuLocalService the chucvu local service
	 */
	public void setchucvuLocalService(chucvuLocalService chucvuLocalService) {
		this.chucvuLocalService = chucvuLocalService;
	}

	/**
	 * Gets the chucvu persistence.
	 *
	 * @return the chucvu persistence
	 */
	public chucvuPersistence getchucvuPersistence() {
		return chucvuPersistence;
	}

	/**
	 * Sets the chucvu persistence.
	 *
	 * @param chucvuPersistence the chucvu persistence
	 */
	public void setchucvuPersistence(chucvuPersistence chucvuPersistence) {
		this.chucvuPersistence = chucvuPersistence;
	}

	/**
	 * Gets the capuy local service.
	 *
	 * @return the capuy local service
	 */
	public capuyLocalService getcapuyLocalService() {
		return capuyLocalService;
	}

	/**
	 * Sets the capuy local service.
	 *
	 * @param capuyLocalService the capuy local service
	 */
	public void setcapuyLocalService(capuyLocalService capuyLocalService) {
		this.capuyLocalService = capuyLocalService;
	}

	/**
	 * Gets the capuy persistence.
	 *
	 * @return the capuy persistence
	 */
	public capuyPersistence getcapuyPersistence() {
		return capuyPersistence;
	}

	/**
	 * Sets the capuy persistence.
	 *
	 * @param capuyPersistence the capuy persistence
	 */
	public void setcapuyPersistence(capuyPersistence capuyPersistence) {
		this.capuyPersistence = capuyPersistence;
	}

	/**
	 * Gets the danhhieu local service.
	 *
	 * @return the danhhieu local service
	 */
	public danhhieuLocalService getdanhhieuLocalService() {
		return danhhieuLocalService;
	}

	/**
	 * Sets the danhhieu local service.
	 *
	 * @param danhhieuLocalService the danhhieu local service
	 */
	public void setdanhhieuLocalService(
		danhhieuLocalService danhhieuLocalService) {
		this.danhhieuLocalService = danhhieuLocalService;
	}

	/**
	 * Gets the danhhieu persistence.
	 *
	 * @return the danhhieu persistence
	 */
	public danhhieuPersistence getdanhhieuPersistence() {
		return danhhieuPersistence;
	}

	/**
	 * Sets the danhhieu persistence.
	 *
	 * @param danhhieuPersistence the danhhieu persistence
	 */
	public void setdanhhieuPersistence(danhhieuPersistence danhhieuPersistence) {
		this.danhhieuPersistence = danhhieuPersistence;
	}

	/**
	 * Gets the dantoc local service.
	 *
	 * @return the dantoc local service
	 */
	public dantocLocalService getdantocLocalService() {
		return dantocLocalService;
	}

	/**
	 * Sets the dantoc local service.
	 *
	 * @param dantocLocalService the dantoc local service
	 */
	public void setdantocLocalService(dantocLocalService dantocLocalService) {
		this.dantocLocalService = dantocLocalService;
	}

	/**
	 * Gets the dantoc persistence.
	 *
	 * @return the dantoc persistence
	 */
	public dantocPersistence getdantocPersistence() {
		return dantocPersistence;
	}

	/**
	 * Sets the dantoc persistence.
	 *
	 * @param dantocPersistence the dantoc persistence
	 */
	public void setdantocPersistence(dantocPersistence dantocPersistence) {
		this.dantocPersistence = dantocPersistence;
	}

	/**
	 * Gets the hocham local service.
	 *
	 * @return the hocham local service
	 */
	public hochamLocalService gethochamLocalService() {
		return hochamLocalService;
	}

	/**
	 * Sets the hocham local service.
	 *
	 * @param hochamLocalService the hocham local service
	 */
	public void sethochamLocalService(hochamLocalService hochamLocalService) {
		this.hochamLocalService = hochamLocalService;
	}

	/**
	 * Gets the hocham persistence.
	 *
	 * @return the hocham persistence
	 */
	public hochamPersistence gethochamPersistence() {
		return hochamPersistence;
	}

	/**
	 * Sets the hocham persistence.
	 *
	 * @param hochamPersistence the hocham persistence
	 */
	public void sethochamPersistence(hochamPersistence hochamPersistence) {
		this.hochamPersistence = hochamPersistence;
	}

	/**
	 * Gets the hocvi local service.
	 *
	 * @return the hocvi local service
	 */
	public hocviLocalService gethocviLocalService() {
		return hocviLocalService;
	}

	/**
	 * Sets the hocvi local service.
	 *
	 * @param hocviLocalService the hocvi local service
	 */
	public void sethocviLocalService(hocviLocalService hocviLocalService) {
		this.hocviLocalService = hocviLocalService;
	}

	/**
	 * Gets the hocvi persistence.
	 *
	 * @return the hocvi persistence
	 */
	public hocviPersistence gethocviPersistence() {
		return hocviPersistence;
	}

	/**
	 * Sets the hocvi persistence.
	 *
	 * @param hocviPersistence the hocvi persistence
	 */
	public void sethocviPersistence(hocviPersistence hocviPersistence) {
		this.hocviPersistence = hocviPersistence;
	}

	/**
	 * Gets the tongiao local service.
	 *
	 * @return the tongiao local service
	 */
	public tongiaoLocalService gettongiaoLocalService() {
		return tongiaoLocalService;
	}

	/**
	 * Sets the tongiao local service.
	 *
	 * @param tongiaoLocalService the tongiao local service
	 */
	public void settongiaoLocalService(tongiaoLocalService tongiaoLocalService) {
		this.tongiaoLocalService = tongiaoLocalService;
	}

	/**
	 * Gets the tongiao persistence.
	 *
	 * @return the tongiao persistence
	 */
	public tongiaoPersistence gettongiaoPersistence() {
		return tongiaoPersistence;
	}

	/**
	 * Sets the tongiao persistence.
	 *
	 * @param tongiaoPersistence the tongiao persistence
	 */
	public void settongiaoPersistence(tongiaoPersistence tongiaoPersistence) {
		this.tongiaoPersistence = tongiaoPersistence;
	}

	/**
	 * Gets the xuatthan local service.
	 *
	 * @return the xuatthan local service
	 */
	public xuatthanLocalService getxuatthanLocalService() {
		return xuatthanLocalService;
	}

	/**
	 * Sets the xuatthan local service.
	 *
	 * @param xuatthanLocalService the xuatthan local service
	 */
	public void setxuatthanLocalService(
		xuatthanLocalService xuatthanLocalService) {
		this.xuatthanLocalService = xuatthanLocalService;
	}

	/**
	 * Gets the xuatthan persistence.
	 *
	 * @return the xuatthan persistence
	 */
	public xuatthanPersistence getxuatthanPersistence() {
		return xuatthanPersistence;
	}

	/**
	 * Sets the xuatthan persistence.
	 *
	 * @param xuatthanPersistence the xuatthan persistence
	 */
	public void setxuatthanPersistence(xuatthanPersistence xuatthanPersistence) {
		this.xuatthanPersistence = xuatthanPersistence;
	}

	/**
	 * Gets the giaoducphothong local service.
	 *
	 * @return the giaoducphothong local service
	 */
	public giaoducphothongLocalService getgiaoducphothongLocalService() {
		return giaoducphothongLocalService;
	}

	/**
	 * Sets the giaoducphothong local service.
	 *
	 * @param giaoducphothongLocalService the giaoducphothong local service
	 */
	public void setgiaoducphothongLocalService(
		giaoducphothongLocalService giaoducphothongLocalService) {
		this.giaoducphothongLocalService = giaoducphothongLocalService;
	}

	/**
	 * Gets the giaoducphothong persistence.
	 *
	 * @return the giaoducphothong persistence
	 */
	public giaoducphothongPersistence getgiaoducphothongPersistence() {
		return giaoducphothongPersistence;
	}

	/**
	 * Sets the giaoducphothong persistence.
	 *
	 * @param giaoducphothongPersistence the giaoducphothong persistence
	 */
	public void setgiaoducphothongPersistence(
		giaoducphothongPersistence giaoducphothongPersistence) {
		this.giaoducphothongPersistence = giaoducphothongPersistence;
	}

	/**
	 * Gets the ngachluong local service.
	 *
	 * @return the ngachluong local service
	 */
	public ngachluongLocalService getngachluongLocalService() {
		return ngachluongLocalService;
	}

	/**
	 * Sets the ngachluong local service.
	 *
	 * @param ngachluongLocalService the ngachluong local service
	 */
	public void setngachluongLocalService(
		ngachluongLocalService ngachluongLocalService) {
		this.ngachluongLocalService = ngachluongLocalService;
	}

	/**
	 * Gets the ngachluong persistence.
	 *
	 * @return the ngachluong persistence
	 */
	public ngachluongPersistence getngachluongPersistence() {
		return ngachluongPersistence;
	}

	/**
	 * Sets the ngachluong persistence.
	 *
	 * @param ngachluongPersistence the ngachluong persistence
	 */
	public void setngachluongPersistence(
		ngachluongPersistence ngachluongPersistence) {
		this.ngachluongPersistence = ngachluongPersistence;
	}

	/**
	 * Gets the hesoluong local service.
	 *
	 * @return the hesoluong local service
	 */
	public hesoluongLocalService gethesoluongLocalService() {
		return hesoluongLocalService;
	}

	/**
	 * Sets the hesoluong local service.
	 *
	 * @param hesoluongLocalService the hesoluong local service
	 */
	public void sethesoluongLocalService(
		hesoluongLocalService hesoluongLocalService) {
		this.hesoluongLocalService = hesoluongLocalService;
	}

	/**
	 * Gets the hesoluong persistence.
	 *
	 * @return the hesoluong persistence
	 */
	public hesoluongPersistence gethesoluongPersistence() {
		return hesoluongPersistence;
	}

	/**
	 * Sets the hesoluong persistence.
	 *
	 * @param hesoluongPersistence the hesoluong persistence
	 */
	public void sethesoluongPersistence(
		hesoluongPersistence hesoluongPersistence) {
		this.hesoluongPersistence = hesoluongPersistence;
	}

	/**
	 * Gets the hoso local service.
	 *
	 * @return the hoso local service
	 */
	public hosoLocalService gethosoLocalService() {
		return hosoLocalService;
	}

	/**
	 * Sets the hoso local service.
	 *
	 * @param hosoLocalService the hoso local service
	 */
	public void sethosoLocalService(hosoLocalService hosoLocalService) {
		this.hosoLocalService = hosoLocalService;
	}

	/**
	 * Gets the hoso persistence.
	 *
	 * @return the hoso persistence
	 */
	public hosoPersistence gethosoPersistence() {
		return hosoPersistence;
	}

	/**
	 * Sets the hoso persistence.
	 *
	 * @param hosoPersistence the hoso persistence
	 */
	public void sethosoPersistence(hosoPersistence hosoPersistence) {
		this.hosoPersistence = hosoPersistence;
	}

	/**
	 * Gets the sachxuatban local service.
	 *
	 * @return the sachxuatban local service
	 */
	public sachxuatbanLocalService getsachxuatbanLocalService() {
		return sachxuatbanLocalService;
	}

	/**
	 * Sets the sachxuatban local service.
	 *
	 * @param sachxuatbanLocalService the sachxuatban local service
	 */
	public void setsachxuatbanLocalService(
		sachxuatbanLocalService sachxuatbanLocalService) {
		this.sachxuatbanLocalService = sachxuatbanLocalService;
	}

	/**
	 * Gets the sachxuatban persistence.
	 *
	 * @return the sachxuatban persistence
	 */
	public sachxuatbanPersistence getsachxuatbanPersistence() {
		return sachxuatbanPersistence;
	}

	/**
	 * Sets the sachxuatban persistence.
	 *
	 * @param sachxuatbanPersistence the sachxuatban persistence
	 */
	public void setsachxuatbanPersistence(
		sachxuatbanPersistence sachxuatbanPersistence) {
		this.sachxuatbanPersistence = sachxuatbanPersistence;
	}

	/**
	 * Gets the dienbienhocham local service.
	 *
	 * @return the dienbienhocham local service
	 */
	public dienbienhochamLocalService getdienbienhochamLocalService() {
		return dienbienhochamLocalService;
	}

	/**
	 * Sets the dienbienhocham local service.
	 *
	 * @param dienbienhochamLocalService the dienbienhocham local service
	 */
	public void setdienbienhochamLocalService(
		dienbienhochamLocalService dienbienhochamLocalService) {
		this.dienbienhochamLocalService = dienbienhochamLocalService;
	}

	/**
	 * Gets the dienbienhocham persistence.
	 *
	 * @return the dienbienhocham persistence
	 */
	public dienbienhochamPersistence getdienbienhochamPersistence() {
		return dienbienhochamPersistence;
	}

	/**
	 * Sets the dienbienhocham persistence.
	 *
	 * @param dienbienhochamPersistence the dienbienhocham persistence
	 */
	public void setdienbienhochamPersistence(
		dienbienhochamPersistence dienbienhochamPersistence) {
		this.dienbienhochamPersistence = dienbienhochamPersistence;
	}

	/**
	 * Gets the dienbienhocvi local service.
	 *
	 * @return the dienbienhocvi local service
	 */
	public dienbienhocviLocalService getdienbienhocviLocalService() {
		return dienbienhocviLocalService;
	}

	/**
	 * Sets the dienbienhocvi local service.
	 *
	 * @param dienbienhocviLocalService the dienbienhocvi local service
	 */
	public void setdienbienhocviLocalService(
		dienbienhocviLocalService dienbienhocviLocalService) {
		this.dienbienhocviLocalService = dienbienhocviLocalService;
	}

	/**
	 * Gets the dienbienhocvi persistence.
	 *
	 * @return the dienbienhocvi persistence
	 */
	public dienbienhocviPersistence getdienbienhocviPersistence() {
		return dienbienhocviPersistence;
	}

	/**
	 * Sets the dienbienhocvi persistence.
	 *
	 * @param dienbienhocviPersistence the dienbienhocvi persistence
	 */
	public void setdienbienhocviPersistence(
		dienbienhocviPersistence dienbienhocviPersistence) {
		this.dienbienhocviPersistence = dienbienhocviPersistence;
	}

	/**
	 * Gets the dienbienluong local service.
	 *
	 * @return the dienbienluong local service
	 */
	public dienbienluongLocalService getdienbienluongLocalService() {
		return dienbienluongLocalService;
	}

	/**
	 * Sets the dienbienluong local service.
	 *
	 * @param dienbienluongLocalService the dienbienluong local service
	 */
	public void setdienbienluongLocalService(
		dienbienluongLocalService dienbienluongLocalService) {
		this.dienbienluongLocalService = dienbienluongLocalService;
	}

	/**
	 * Gets the dienbienluong persistence.
	 *
	 * @return the dienbienluong persistence
	 */
	public dienbienluongPersistence getdienbienluongPersistence() {
		return dienbienluongPersistence;
	}

	/**
	 * Sets the dienbienluong persistence.
	 *
	 * @param dienbienluongPersistence the dienbienluong persistence
	 */
	public void setdienbienluongPersistence(
		dienbienluongPersistence dienbienluongPersistence) {
		this.dienbienluongPersistence = dienbienluongPersistence;
	}

	/**
	 * Gets the quatrinhdinuocngoai local service.
	 *
	 * @return the quatrinhdinuocngoai local service
	 */
	public quatrinhdinuocngoaiLocalService getquatrinhdinuocngoaiLocalService() {
		return quatrinhdinuocngoaiLocalService;
	}

	/**
	 * Sets the quatrinhdinuocngoai local service.
	 *
	 * @param quatrinhdinuocngoaiLocalService the quatrinhdinuocngoai local service
	 */
	public void setquatrinhdinuocngoaiLocalService(
		quatrinhdinuocngoaiLocalService quatrinhdinuocngoaiLocalService) {
		this.quatrinhdinuocngoaiLocalService = quatrinhdinuocngoaiLocalService;
	}

	/**
	 * Gets the quatrinhdinuocngoai persistence.
	 *
	 * @return the quatrinhdinuocngoai persistence
	 */
	public quatrinhdinuocngoaiPersistence getquatrinhdinuocngoaiPersistence() {
		return quatrinhdinuocngoaiPersistence;
	}

	/**
	 * Sets the quatrinhdinuocngoai persistence.
	 *
	 * @param quatrinhdinuocngoaiPersistence the quatrinhdinuocngoai persistence
	 */
	public void setquatrinhdinuocngoaiPersistence(
		quatrinhdinuocngoaiPersistence quatrinhdinuocngoaiPersistence) {
		this.quatrinhdinuocngoaiPersistence = quatrinhdinuocngoaiPersistence;
	}

	/**
	 * Gets the quatrinhnghiencuu local service.
	 *
	 * @return the quatrinhnghiencuu local service
	 */
	public quatrinhnghiencuuLocalService getquatrinhnghiencuuLocalService() {
		return quatrinhnghiencuuLocalService;
	}

	/**
	 * Sets the quatrinhnghiencuu local service.
	 *
	 * @param quatrinhnghiencuuLocalService the quatrinhnghiencuu local service
	 */
	public void setquatrinhnghiencuuLocalService(
		quatrinhnghiencuuLocalService quatrinhnghiencuuLocalService) {
		this.quatrinhnghiencuuLocalService = quatrinhnghiencuuLocalService;
	}

	/**
	 * Gets the quatrinhnghiencuu persistence.
	 *
	 * @return the quatrinhnghiencuu persistence
	 */
	public quatrinhnghiencuuPersistence getquatrinhnghiencuuPersistence() {
		return quatrinhnghiencuuPersistence;
	}

	/**
	 * Sets the quatrinhnghiencuu persistence.
	 *
	 * @param quatrinhnghiencuuPersistence the quatrinhnghiencuu persistence
	 */
	public void setquatrinhnghiencuuPersistence(
		quatrinhnghiencuuPersistence quatrinhnghiencuuPersistence) {
		this.quatrinhnghiencuuPersistence = quatrinhnghiencuuPersistence;
	}

	/**
	 * Gets the counter local service.
	 *
	 * @return the counter local service
	 */
	public CounterLocalService getCounterLocalService() {
		return counterLocalService;
	}

	/**
	 * Sets the counter local service.
	 *
	 * @param counterLocalService the counter local service
	 */
	public void setCounterLocalService(CounterLocalService counterLocalService) {
		this.counterLocalService = counterLocalService;
	}

	/**
	 * Gets the resource local service.
	 *
	 * @return the resource local service
	 */
	public ResourceLocalService getResourceLocalService() {
		return resourceLocalService;
	}

	/**
	 * Sets the resource local service.
	 *
	 * @param resourceLocalService the resource local service
	 */
	public void setResourceLocalService(
		ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}

	/**
	 * Gets the resource remote service.
	 *
	 * @return the resource remote service
	 */
	public ResourceService getResourceService() {
		return resourceService;
	}

	/**
	 * Sets the resource remote service.
	 *
	 * @param resourceService the resource remote service
	 */
	public void setResourceService(ResourceService resourceService) {
		this.resourceService = resourceService;
	}

	/**
	 * Gets the resource persistence.
	 *
	 * @return the resource persistence
	 */
	public ResourcePersistence getResourcePersistence() {
		return resourcePersistence;
	}

	/**
	 * Sets the resource persistence.
	 *
	 * @param resourcePersistence the resource persistence
	 */
	public void setResourcePersistence(ResourcePersistence resourcePersistence) {
		this.resourcePersistence = resourcePersistence;
	}

	/**
	 * Gets the user local service.
	 *
	 * @return the user local service
	 */
	public UserLocalService getUserLocalService() {
		return userLocalService;
	}

	/**
	 * Sets the user local service.
	 *
	 * @param userLocalService the user local service
	 */
	public void setUserLocalService(UserLocalService userLocalService) {
		this.userLocalService = userLocalService;
	}

	/**
	 * Gets the user remote service.
	 *
	 * @return the user remote service
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * Sets the user remote service.
	 *
	 * @param userService the user remote service
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * Gets the user persistence.
	 *
	 * @return the user persistence
	 */
	public UserPersistence getUserPersistence() {
		return userPersistence;
	}

	/**
	 * Sets the user persistence.
	 *
	 * @param userPersistence the user persistence
	 */
	public void setUserPersistence(UserPersistence userPersistence) {
		this.userPersistence = userPersistence;
	}

	/**
	 * Performs an SQL query.
	 *
	 * @param sql the sql query to perform
	 */
	protected void runSQL(String sql) throws SystemException {
		try {
			DataSource dataSource = giaoducphothongPersistence.getDataSource();

			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
					sql, new int[0]);

			sqlUpdate.update();
		}
		catch (Exception e) {
			throw new SystemException(e);
		}
	}

	@BeanReference(type = khoidonviquanlyLocalService.class)
	protected khoidonviquanlyLocalService khoidonviquanlyLocalService;
	@BeanReference(type = khoidonviquanlyPersistence.class)
	protected khoidonviquanlyPersistence khoidonviquanlyPersistence;
	@BeanReference(type = donviLocalService.class)
	protected donviLocalService donviLocalService;
	@BeanReference(type = donviPersistence.class)
	protected donviPersistence donviPersistence;
	@BeanReference(type = chucvuLocalService.class)
	protected chucvuLocalService chucvuLocalService;
	@BeanReference(type = chucvuPersistence.class)
	protected chucvuPersistence chucvuPersistence;
	@BeanReference(type = capuyLocalService.class)
	protected capuyLocalService capuyLocalService;
	@BeanReference(type = capuyPersistence.class)
	protected capuyPersistence capuyPersistence;
	@BeanReference(type = danhhieuLocalService.class)
	protected danhhieuLocalService danhhieuLocalService;
	@BeanReference(type = danhhieuPersistence.class)
	protected danhhieuPersistence danhhieuPersistence;
	@BeanReference(type = dantocLocalService.class)
	protected dantocLocalService dantocLocalService;
	@BeanReference(type = dantocPersistence.class)
	protected dantocPersistence dantocPersistence;
	@BeanReference(type = hochamLocalService.class)
	protected hochamLocalService hochamLocalService;
	@BeanReference(type = hochamPersistence.class)
	protected hochamPersistence hochamPersistence;
	@BeanReference(type = hocviLocalService.class)
	protected hocviLocalService hocviLocalService;
	@BeanReference(type = hocviPersistence.class)
	protected hocviPersistence hocviPersistence;
	@BeanReference(type = tongiaoLocalService.class)
	protected tongiaoLocalService tongiaoLocalService;
	@BeanReference(type = tongiaoPersistence.class)
	protected tongiaoPersistence tongiaoPersistence;
	@BeanReference(type = xuatthanLocalService.class)
	protected xuatthanLocalService xuatthanLocalService;
	@BeanReference(type = xuatthanPersistence.class)
	protected xuatthanPersistence xuatthanPersistence;
	@BeanReference(type = giaoducphothongLocalService.class)
	protected giaoducphothongLocalService giaoducphothongLocalService;
	@BeanReference(type = giaoducphothongPersistence.class)
	protected giaoducphothongPersistence giaoducphothongPersistence;
	@BeanReference(type = ngachluongLocalService.class)
	protected ngachluongLocalService ngachluongLocalService;
	@BeanReference(type = ngachluongPersistence.class)
	protected ngachluongPersistence ngachluongPersistence;
	@BeanReference(type = hesoluongLocalService.class)
	protected hesoluongLocalService hesoluongLocalService;
	@BeanReference(type = hesoluongPersistence.class)
	protected hesoluongPersistence hesoluongPersistence;
	@BeanReference(type = hosoLocalService.class)
	protected hosoLocalService hosoLocalService;
	@BeanReference(type = hosoPersistence.class)
	protected hosoPersistence hosoPersistence;
	@BeanReference(type = sachxuatbanLocalService.class)
	protected sachxuatbanLocalService sachxuatbanLocalService;
	@BeanReference(type = sachxuatbanPersistence.class)
	protected sachxuatbanPersistence sachxuatbanPersistence;
	@BeanReference(type = dienbienhochamLocalService.class)
	protected dienbienhochamLocalService dienbienhochamLocalService;
	@BeanReference(type = dienbienhochamPersistence.class)
	protected dienbienhochamPersistence dienbienhochamPersistence;
	@BeanReference(type = dienbienhocviLocalService.class)
	protected dienbienhocviLocalService dienbienhocviLocalService;
	@BeanReference(type = dienbienhocviPersistence.class)
	protected dienbienhocviPersistence dienbienhocviPersistence;
	@BeanReference(type = dienbienluongLocalService.class)
	protected dienbienluongLocalService dienbienluongLocalService;
	@BeanReference(type = dienbienluongPersistence.class)
	protected dienbienluongPersistence dienbienluongPersistence;
	@BeanReference(type = quatrinhdinuocngoaiLocalService.class)
	protected quatrinhdinuocngoaiLocalService quatrinhdinuocngoaiLocalService;
	@BeanReference(type = quatrinhdinuocngoaiPersistence.class)
	protected quatrinhdinuocngoaiPersistence quatrinhdinuocngoaiPersistence;
	@BeanReference(type = quatrinhnghiencuuLocalService.class)
	protected quatrinhnghiencuuLocalService quatrinhnghiencuuLocalService;
	@BeanReference(type = quatrinhnghiencuuPersistence.class)
	protected quatrinhnghiencuuPersistence quatrinhnghiencuuPersistence;
	@BeanReference(type = CounterLocalService.class)
	protected CounterLocalService counterLocalService;
	@BeanReference(type = ResourceLocalService.class)
	protected ResourceLocalService resourceLocalService;
	@BeanReference(type = ResourceService.class)
	protected ResourceService resourceService;
	@BeanReference(type = ResourcePersistence.class)
	protected ResourcePersistence resourcePersistence;
	@BeanReference(type = UserLocalService.class)
	protected UserLocalService userLocalService;
	@BeanReference(type = UserService.class)
	protected UserService userService;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
}